class PictorialInfo {
  final String? title;
  final String? subTitle;
  final String? content;
  final String? description;
  final String? img;
  final String? aud;
  final int? delay;

  const PictorialInfo({
    this.title,
    this.subTitle,
    this.content,
    this.description,
    this.img,
    this.aud,
    this.delay,
  });

  factory PictorialInfo.fromJson(Map<String, dynamic> json) {
    return PictorialInfo(
      title: json['title'],
      subTitle: json['subTitle'],
      content: json['content'],
      description: json['description'],
      img: json['img'],
      aud: json['aud'],
      delay: json['delay'],
    );
  }

  static List<PictorialInfo> jsonToList(List<dynamic> json) {
    return json.map((item) => PictorialInfo.fromJson(item)).toList();
  }
}
